package com.kingwang.training.designpattern.decorator.bo;

/**
 * 装饰器
 */
public abstract class AbstractDecorator implements Drinkable {
    private Drinkable drink;

    public AbstractDecorator(Drinkable drink) {
        this.drink = drink;
    }

    @Override
    public Double cost() {
        return this.drink.cost();
    }

    @Override
    public String info() {
        return this.drink.info();
    }
}
